home *** CD-ROM | disk | FTP | other *** search
/ The Original Shareware 1.1 / The Original Shareware (WeMake CDs)(Volume 1.1)(CDs, Inc)(1993).iso / 16 / qextra.zip / QFORMAT.ART < prev    next >
Text File  |  1988-05-27  |  47KB  |  1,977 lines

  1.  
  2.  
  3. WORD PROCESSOR FORMAT FEATURES FOR QEDIT 2.03
  4. =============================================
  5. by
  6. Gene Catalano  (June 1, 1988)
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13. TABLE OF CONTENTS
  14. =================
  15.  
  16. PART I:    INTRODUCTION (WHAT YOU NEED TO KNOW)            Pg. 2
  17. PART II:   SETTING UP MACROS FOR FORMAT FEATURES           Pg. 4
  18. PART III:  INSTRUCTIONS ON CREATING FORMAT MACROS          Pg. 6
  19. PART IV:   EDIT/CREATE YOUR FORMAT MACROS                  Pg. 10
  20. PART V:    SAVING YOUR MACROS                              Pg. 28
  21.  
  22.  
  23.  
  24. ACCESSORY FILE (if downloaded, part of my package, QEXTRA.ARC):
  25.  
  26.      FORMAT.MAC
  27.      CLEAR.MAC
  28.  
  29. (CLEAR.MAC is a "dummy" macro file...that is, its contents are
  30. "zilch." Actually, it contains a macro command for ALT-0, which
  31. is to move cursor right 5 spaces, then left 5 spaces.  Whenever
  32. you want to clear all current macro keys, just load CLEAR.MAC.)
  33.  
  34. If you acquired this article by downloading my package,
  35. QEXTRA.ARC, you should have the following 14 files: QASCII.ART,
  36. QCONFIG.ART, QFORMAT.ART, Q-L-FORM.ART, QPRINTER.ART, ASCII.MAC,
  37. CLEAR.MAC, FORMAT.MAC, L-FORM.MAC, PRINT.MAC, README.1ST,
  38. SAMPLE.BOX, TEMPLATE, and TEST.PRN. If you are reading this
  39. article through a bulletin board service, without the benefit of
  40. having downloaded the entire package (QEXTRA.ARC), you can still
  41. use 100% of the information described herein.  (The files ending
  42. with ".ART" are articles, and all other files are accessories to
  43. the articles.)
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66. "FORMAT" MACROS FOR QEDIT (cont'd)
  67.  
  68.  
  69.  
  70.  
  71. *****************************************************************
  72.  
  73. PART I:  INTRODUCTION (WHAT YOU NEED TO KNOW)
  74. =============================================
  75.  
  76. IMPORTANT:  Please note that the instructions herein are for
  77. QEDIT version 2.03, and depend on QEDIT's "macro creation" and
  78. "literal" features. These instructions may or may not be
  79. applicable to future versions, depending on the author's upgrade
  80. approach.  Likewise, the instructions are for dot matrix
  81. printers.  If you have a daisy wheel or thimble printer, and are
  82. savvy (or persistant) enough, you can probably adapt my
  83. instructions to work for your printer.
  84.  
  85. You must already be acquainted with QEDIT key configuration and
  86. macro creation, in order to make use of this information.
  87. Macros for print code word-processing features (letter quality,
  88. double strike, enhanced, italics, underscore, superscript,
  89. subscript, justification, proportional spacing, 12 cpi, etc.) are
  90. discussed in my file QPRINTER.ART.
  91.  
  92. Macros for box and line-draw graphics are discussed in my file
  93. QBOXES.ART.
  94.  
  95. Macros for extended code ASCII characters are discussed in my
  96. file ASCII.ART.
  97.  
  98. These macros were created to give QEDIT the following
  99. word-processor document formatting capabilities:  automatic page
  100. breaks, automatic top and bottom margins, automatic deletion of
  101. previously-set top/bottom margins, headers, footers, and
  102. automatic printing of document-standard text of 1-inch left/right
  103. margins for both pica and elite.
  104.  
  105. These macros were designed with the following assumptions:
  106.  
  107. Printing with 8-1/2 by 11 inch paper.
  108. Page length of 66 lines.
  109. Printing at 6 lines per inch.
  110. Printer is set with "Skip page perforation" OFF.
  111.  
  112. Said assumptions meeting the needs of most users, the experienced
  113. user can adapt these macros, and/or create additional ones, to
  114. expand QEDIT's word processing power.
  115.  
  116. In case you are curious, this text has been formatted using my
  117. original macros from FORMAT.MAC.  Text was configured for the
  118. [ALT]8 macro (Set Left/Right Margins at 1" for 10 cpi or
  119. proportional).  So before printing, set printer for that macro.
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.                             -=2=-
  127.  
  128.  
  129.  
  130. "FORMAT" MACROS FOR QEDIT (cont'd)
  131.  
  132.  
  133.  
  134.  
  135. Because printers vary widely with which codes they use for fonts
  136. and pitches, I left out any print codes...so make sure your
  137. printer is set for 10 cpi (pica).  You can certainly dress up
  138. this article by using print codes described in my file
  139. PRINTER.ART!   (If you don't use the "set left/right margins at 1
  140. inch " macro, it will print out just as you see on screen:  left
  141. margin at 1 inch, right margin at 65.)
  142.  
  143.  
  144.  
  145.  
  146.  
  147.  
  148.  
  149.  
  150.  
  151.  
  152.  
  153.  
  154.  
  155.  
  156.  
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.                             -=3=-
  191.  
  192.  
  193.  
  194. "FORMAT" MACROS FOR QEDIT (cont'd)
  195.  
  196.  
  197.  
  198.  
  199. *****************************************************************
  200.  
  201. PART II:  SETTING UP MACROS FOR FORMAT FEATURES
  202. -----------------------------------------------
  203.  
  204. MACRO     FORMAT FEATURE
  205. =====     ==================================================
  206.  
  207. [ALT]1    Page break w/6-line (1") top & bottom margins
  208. [ALT]2    Page break w/3-line (1/2") top & bottom margins
  209. [ALT]3    Copy header to next page
  210. [ALT]4    Copy footer to next page
  211. [ALT]5    Find page break
  212. [ALT]6    Remove 6-line bottom & top margins
  213. [ALT]7    Remove 3-line bottom & top margins
  214. [ALT]8    Set Left/Right Margins at 1" (10 cpi/proportional)
  215. [ALT]9    Set Left/Right Margins at 1" (12 cpi)
  216. [ALT]0    Clear left/right margins to 10 cpi, 8-1/2" page
  217. [ALT]Q    Check page length for 52-line text body
  218. [ALT]W    Check page length for 58-line text body
  219. [ALT]E    Check full page length (64 lines)
  220. [ALT]R    printer carriage return
  221. [ALT]T    printer page eject
  222. [ALT]Y    Input form feed (manual page break)
  223.  
  224. [ALT]D    convert to double space (from single)
  225. [ALT]S    convert to single space (from double)
  226.  
  227. Above is a list of QEDIT 2.03 macros for the most commonly used
  228. word-processor formats not included in QEDIT's original
  229. capabilities.  I use macros ALT-0 through ALT-9 and ALT
  230. -Q,-W,-E,-R,-T,-Y; but you may choose any macro keystrokes (in
  231. which case edit the "MACRO" column).  (ALT-D and ALT-S were added
  232. as an afterthought.)  Please note that QEDIT does not allow use
  233. of "two_key" commands for macros, which are two keystrokes
  234. preceded by the [ALT], [CTRL] or [SHIFT] key...or even with the
  235. last keystroke preceded by another [ALT], [CTRL] or [SHIFT] key.
  236. Also, note that QEDIT does not allow macro creation of keys
  237. already configured through QCONFIG.EXE.
  238.  
  239. By editing the list above to suit your requirements, you may use
  240. it as a reference for creating the macro keys.
  241.  
  242. I have used the same "family" of macros (ALT-0 through ALT-9 and
  243. [ALT] -Q,-W,-E,-R,-T,-Y) for my "format macros," "legal format
  244. macros," "printer macros," and "ascii macros," discussed in the
  245. files QFORMAT.ART, Q-L-FORM.ART, QPRINTER.ART and QASCII.ART. If
  246. you do likewise, you will have to switch among my four macro
  247. files, by using QEDIT's "<macro_read>" command.
  248.  
  249.  
  250.  
  251.  
  252.  
  253.  
  254.                             -=4=-
  255.  
  256.  
  257.  
  258. "FORMAT" MACROS FOR QEDIT (cont'd)
  259.  
  260.  
  261.  
  262.  
  263. Remember:  in order to reserve the "macro family" ALT-0 through
  264. ALT-9, and ALT -Q,-W,-E,-R,-T,-Y (which is each letter
  265. Q,W,E,R,T,Y preceded by [ALT]), for your own macro files, you
  266. must not use any of these keys in your configuration file (which
  267. is set up by running QCONFIG.EXE). This applies to any key
  268. combinations you want to use for macros.
  269.  
  270.  
  271.  
  272.  
  273.  
  274.  
  275.  
  276.  
  277.  
  278.  
  279.  
  280.  
  281.  
  282.  
  283.  
  284.  
  285.  
  286.  
  287.  
  288.  
  289.  
  290.  
  291.  
  292.  
  293.  
  294.  
  295.  
  296.  
  297.  
  298.  
  299.  
  300.  
  301.  
  302.  
  303.  
  304.  
  305.  
  306.  
  307.  
  308.  
  309.  
  310.  
  311.  
  312.  
  313.  
  314.  
  315.  
  316.  
  317.  
  318.  
  319.  
  320.                             -=5=-
  321.  
  322.  
  323.  
  324. "FORMAT" MACROS FOR QEDIT (cont'd)
  325.  
  326.  
  327.  
  328.  
  329. *****************************************************************
  330.  
  331. PART III:  INSTRUCTIONS ON CREATING FORMAT MACROS
  332. -------------------------------------------------
  333.  
  334. Although there are two ways to create QEDIT macros--adding them
  335. to the key configuration file, or creating a special macro
  336. file--I prefer the second. This way, macros ALT-0 through ALT-9
  337. and [ALT]Q, [ALT]W, [ALT]E, [ALT]R and [ALT]Y, can be re-used for
  338. other macro files. (The basic idea here, is to reserve a "family"
  339. of keys for your macro files...because any keys used in your
  340. configuration file are not available for macro recording.)
  341.  
  342. The full macro "family" I reserve for macro files is [ALT]-0
  343. through [ALT]-9 , and [ALT] -Q,-W,-E,-R,-T,-Y.
  344.  
  345. If you like my macro assignments, and you have no keys configured
  346. within that macro family, you are ready to go! Once you are in
  347. QEDIT, just load my macro file FORMAT.MAC with the "macro_read"
  348. command. (Unlike the print-code macro file PRINT.MAC, there are
  349. no code incompatibilities to watch out for.)
  350.  
  351. (If you didn't acquire this article by downloading it as part of
  352. my QEXTRA.ARC package, then you might not have accessory files
  353. ASCII.MAC, CLEAR.MAC, FORMAT.MAC, L-FORM.MAC, PRINT.MAC,
  354. SAMPLE.BOX, TEST.PRN, or TEMPLATE.)
  355.  
  356. ---------------
  357. You can create a macro to automatically load FORMAT.MAC.  In the
  358. following key configuration, I selected ALT-F ("@f") for the
  359. macro, but you may choose another macro key.  This example is to
  360. be included in your configuration file, which should then be
  361. imbedded in your QEDIT program by running QCONFIG.EXE:
  362.  
  363. @f   macro_begin escape 'm' 'r' 'format.mac' return
  364.  
  365. The above macro configuration assumes that FORMAT.MAC resides in
  366. the same directory where you run QEDIT.  If not, add the drive
  367. and/or subdirectory. For example, if FORMAT.MAC resides in drive
  368. C:, subdirectory "\MACRO", you would change 'FORMAT.MAC' to
  369. 'C:\MACRO\FORMAT.MAC'.  (Of course, you may prefer a file name
  370. other than FORMAT.MAC, in which case, change it.)
  371. ---------------
  372.  
  373. NOTE: The original QEDIT configuration file, QCONFIG.DAT, does
  374. not include the "macro_read" and "macro_write" commands.
  375. ("Macro_record" is CTRL-M.)  Of course, you can just use the
  376. pop-up menu by hitting "[ESC]MM" to begin the macro, and hitting
  377. "[ESC]MM" a second time to end the macro.
  378.  
  379.  
  380.  
  381.  
  382.  
  383.  
  384.                             -=6=-
  385.  
  386.  
  387.  
  388. "FORMAT" MACROS FOR QEDIT (cont'd)
  389.  
  390.  
  391.  
  392.  
  393. To include "macro_read" and "macro_write" as key configurations,
  394. I suggest first changing the original "macro_record" from CTRL-M
  395. to CTRL-M-C ("C" standing for macro "create") then using CTRL-M-L
  396. for "macro_read" ("L" standing for macro "load"), and CTRL-M-S
  397. for "macro_write" ("S" standing for macro "save"). Delete the
  398. original "macro_record" line in your configuration file, and
  399. replace it with these three lines:
  400.  
  401. ^m_c      macro_record             * macro "create"
  402. ^m_l      macro_read               * macro "load"
  403. ^m_s      macro_write              * macro "save"
  404.  
  405. If you prefer to use macros other than the CTRL-M two-key
  406. commands, change them now.  Either way, you can just copy/paste
  407. the above three command lines into your configuration file.  Then
  408. run QCONFIG.EXE to reconfigure your keys.
  409.  
  410. If you are using the WordStar-compatible configuration file
  411. QWSKEY.DAT, [SHIFT][F1], [SHIFT][F2], and [SHIFT][F3] are used
  412. for "macro_read," "macro_write," and "macro_record,"
  413. respectively.)
  414.  
  415. You must have QEDIT's "literal" command included in your
  416. configuration file.  In the original QCONFIG.DAT configuration
  417. file, the command line is:
  418.  
  419. ^p   literal
  420.  
  421. (The "literal" command tells QEDIT to literally interpret the
  422. next keystroke.  Since you do not want [ESC] to call up QEDIT's
  423. pop-up menus, as it normally does, you must precede [ESC] with a
  424. "literal" command, in order to bypass QEDIT's function for [ESC],
  425. and use it to activate a printer [escape] code instead.)
  426.  
  427. When creating a macro that includes [PGUP]/[PGDN] keys, you must
  428. not be working in a window (that is, you must be in "full screen"
  429. mode).  This is because [PGUP] and [PGDN] take smaller jumps in
  430. windows, than in full screen.
  431.  
  432.  
  433.  
  434.  
  435.  
  436.  
  437.  
  438.  
  439.  
  440.  
  441.  
  442.  
  443.  
  444.  
  445.  
  446.  
  447.  
  448.                             -=7=-
  449.  
  450.  
  451.  
  452. "FORMAT" MACROS FOR QEDIT (cont'd)
  453.  
  454.  
  455.  
  456.  
  457. HOW TO USE MY INSTRUCTIONS:
  458. ..........................
  459.  
  460. PART IV begins the actual macro creations.  I recommend first
  461. editing the list of 16 macros in PART IV before beginning,
  462. according to the following directions:
  463.  
  464. The QEDIT "<macro_record>" command to begin creating a macro, is
  465. the same command used to end the macro.
  466.  
  467. Any text in "less-than"/"greater-than" brackets "<...>" indicates
  468. a QEDIT keystroke or keystroke combination that is user defined.
  469. Any text in "left"/"right" square brackets "[...]" indicates a
  470. literal keystroke.  Therefore, "[ESC]" means to literally press
  471. the [ESC] key, "[LEFT ARROW]" means to literally press the [LEFT
  472. ARROW] key, and so forth.
  473.  
  474. Any text in "left/right" fancy brackects "{...}" indicates an
  475. instruction to hit the key designated therein, a multiple number
  476. of times as indicated.
  477.  
  478. Characters not in brackets are to be typed just as you see them
  479. (letters are not case sensitive, except any that appear on the
  480. same line as a printer [ESC] code).
  481.  
  482. The steps described to create a macro (in PART IV) are placed on
  483. separate lines in order to break them down into understandable,
  484. digestible units. However, do not, I repeat, do not do the same
  485. thing yourself...for there are absolutely no carriage returns in
  486. any of these macros.  Just treat the steps for creating each
  487. macro as if all the commands for each macro appeared on one line,
  488. without any spaces.
  489.  
  490. To facilitate creation of the macros in PART IV, edit each
  491. macro's step-by-step instruction to conform with your own
  492. customized key configurations.  That is:  replace every
  493. occurrence of "<macro_record>" with your actual "macro_record"
  494. keystroke. Likewise, replace every occurrence of "<literal>" with
  495. your actual "literal" keystroke. Finally, replace each occurrence
  496. of "<MACRO>" with a macro key of your choice (each "<MACRO>" must
  497. be replaced with a different macro keystroke).
  498.  
  499. Likewise, change any of the orginal macro keys in PART IV (ALT-0
  500. through ALT-9 and and ALT -Q,-W,-E,-R,-T,-Y. ), to match any
  501. changes you may have made in the MACRO list in PART II.
  502.  
  503. Once you have customized the macro instructions to your own
  504. preferences, the instructions will be much easier to follow, for
  505. actually creating the macros.
  506.  
  507.  
  508.  
  509.  
  510.  
  511.  
  512.                             -=8=-
  513.  
  514.  
  515.  
  516. "FORMAT" MACROS FOR QEDIT (cont'd)
  517.  
  518.  
  519.  
  520.  
  521. EXAMPLE:
  522. -------
  523.  
  524. The step-by-step instruction to create the macro for "page break
  525. w/6-line top/bottom margins" is:
  526.  
  527. <macro_record>
  528. <MACRO>
  529. {hit [ENTER] 6 times}
  530. [PGDN][PGDN]
  531. {hit [DOWN ARROW] 8 times}
  532. {hit [ENTER] 6 times}
  533. [UP ARROW]
  534. <literal>
  535. [CTRL]L
  536. [LEFT ARROW]
  537. [DOWN ARROW]
  538. <macro_record>
  539.  
  540. Let's pretend that:  my "macro_record" command is "[CTRL]F1", my
  541. <MACRO> assignment is "[SHIFT][F1]", and my "literal" command is
  542. "[CTRL]P".  Therefore, I would edit the instructions to create
  543. the macro key to look like this:
  544.  
  545. [CTRL]F1                                            (begin macro)
  546. [SHIFT][F1]                                     (designate macro)
  547. {hit [ENTER] 6 times}                       (hit [enter] 6 times)
  548. [PGDN][PGDN]                                 (hit [pgdn] 2 times)
  549. {hit [DOWN ARROW] 8 times}             (hit [down arrow] 8 times)
  550. {hit [ENTER] 6 times}                       (hit [enter] 6 times)
  551. [UP ARROW]                                (hit [up arrow] 1 time)
  552. [CTRL]P                         (interpret next key as "literal")
  553. [CTRL]L                           ("literal" [ctrl]l = form feed)
  554. [LEFT ARROW]                            (hit [left arrow] 1 time)
  555. [DOWN ARROW]                            (hit [down arrow] 1 time)
  556. [CTRL]F1                                              (end macro)
  557.  
  558. Hopefully, you are now ready to edit the macro creation steps
  559. below. Notation below each macro instruction assists your
  560. editing.
  561.  
  562. When you are ready to create the macros, open or create a file in
  563. QEDIT, then follow the steps in PART IV for creating ten printer
  564. code macros.
  565.  
  566. To save your printer macros in a permanent file, follow
  567. instructions in PART V: SAVING YOUR MACROS.
  568.  
  569.  
  570.  
  571.  
  572.  
  573.  
  574.  
  575.  
  576.                             -=9=-
  577.  
  578.  
  579.  
  580. "FORMAT" MACROS FOR QEDIT (cont'd)
  581.  
  582.  
  583.  
  584.  
  585. *****************************************************************
  586.  
  587. PART IV:  EDIT/CREATE YOUR FORMAT MACROS
  588. ----------------------------------------
  589.  
  590. ------------------------------------------------------------
  591. ALT-1:  PAGE BREAK W/TOP & BOTTOM MARGINS OF 6 LINES (1")
  592.  
  593. <macro_record>
  594. <MACRO>
  595. {hit [ENTER] 6 times}
  596. [PGDN][PGDN]
  597. {hit [DOWN ARROW] 8 times}
  598. {hit [ENTER] 6 times}
  599. [UP ARROW]
  600. <literal>
  601. [CTRL]L
  602. [LEFT ARROW]
  603. [DOWN ARROW]
  604. <macro_record>
  605.  
  606. NOTES:  This "page-break" macro simulates a word-processor's
  607. automatic page break as close as possible.  Since it also inserts
  608. a (6-line) top and bottom margin with each page break, you are
  609. spared the bother of "manually" figuring out where each page
  610. begins and ends...which gets rather tricky after the first two
  611. pages!  For this reason, type your text without line spaces
  612. (except to separate paragraphs), and do not use the page-break
  613. macro until you have completed the final draft.
  614.  
  615. Before executing page-break macro, [INSERT] must be "on"; cursor
  616. must be on line 1, column 1, of any page...and there must be no
  617. windows active (that is, file must be in "full screen" mode.
  618. This is because [PGUP] and [PGDN] take smaller jumps in windows,
  619. than in full screen).
  620.  
  621. 6-line top/bottom margin page-break macro gives you a maximum
  622. text body of 52 lines.
  623.  
  624. If you don't like how the page break divides text, "block move"
  625. the offending bottom text from the previous page onto the next
  626. page...being careful not to alter the top and bottom line-space
  627. margins.  (You should do this before continuing your next
  628. page-break macro.)  "Block move" deletes line spaces occupied by
  629. the block before it was moved.  "Block copy" does not...but
  630. you'll have to go back and erase it without subtracting line
  631. space, in which case you place cursor on column 1 and delete each
  632. line with QEDIT's "<del_to_eol>" command.
  633.  
  634. If you do not plan to create footers, you may delete all blank
  635. lines between bottom of text and form feed line, that may form as
  636. a result of using the "page break" macro.  I recommend, however,
  637.  
  638.  
  639.  
  640.                             -=10=-
  641.  
  642.  
  643.  
  644. "FORMAT" MACROS FOR QEDIT (cont'd)
  645.  
  646.  
  647.  
  648.  
  649. not to do this until you have decided how much space to leave
  650. for a bottom margin.
  651.  
  652. If you do plan to create footers, do not delete any blank lines
  653. that may appear between text end and form-feed line, as a result
  654. of using a "page break" macro.
  655.  
  656. To spare yourself unnecessary re-editing, it is a good habit to
  657. complete your final draft before inserting page breaks, headers,
  658. and footers.
  659.  
  660. Once your top and bottom margins are created, you may insert any
  661. header/footer in the blank margin spaces provided...and there
  662. must be no windows active when using the macros to copy headers
  663. and footers (that is, file must be in "full screen" mode.  This
  664. is because the "copy" macros use [PGUP] and [PGDN], which take
  665. smaller jumps in windows, than in full screen).
  666.  
  667. (Manual "block copy" inserts an additional line space for each
  668. blocked line, underneath the copied text...so remember to delete
  669. those extra blank lines.)
  670.  
  671.  
  672.  
  673.  
  674.  
  675.  
  676.  
  677.  
  678.  
  679.  
  680.  
  681.  
  682.  
  683.  
  684.  
  685.  
  686.  
  687.  
  688.  
  689.  
  690.  
  691.  
  692.  
  693.  
  694.  
  695.  
  696.  
  697.  
  698.  
  699.  
  700.  
  701.  
  702.  
  703.  
  704.                             -=11=-
  705.  
  706.  
  707.  
  708. "FORMAT" MACROS FOR QEDIT (cont'd)
  709.  
  710.  
  711.  
  712.  
  713. ------------------------------------------------------------
  714.  
  715. ALT-2:  PAGE BREAK W/TOP & BOTTOM MARGINS OF 3 LINES (1/2")
  716.  
  717. <macro_record>
  718. <MACRO>
  719. {hit [ENTER] 3 times}
  720. [PGDN][PGDN]
  721. {hit [DOWN ARROW] 14 times}
  722. {hit [ENTER] 3 times}
  723. [UP ARROW]
  724. <literal>
  725. [CTRL]L
  726. [LEFT ARROW]
  727. [DOWN ARROW]
  728. <macro_record>
  729.  
  730. NOTES:  This "page-break" macro simulates a word-processor's
  731. automatic page break as close as possible.  Since it also inserts
  732. a (3-line) top and bottom margin with each page break, you are
  733. spared the bother of "manually" figuring out where each page
  734. begins and ends...which gets rather tricky after the first two
  735. pages!  For this reason, type your text without line spaces
  736. (except to separate paragraphs), and do not use the page-break
  737. macro until you have completed the final draft.
  738.  
  739. Before executing page-break macro, [INSERT] must be "on"; cursor
  740. must be on line 1, column 1, of any page...and there must be no
  741. windows active (that is, file must be in "full screen" mode).
  742.  
  743. 3-line top/bottom margin page-break macro gives you a maximum
  744. text body of 58 lines.
  745.  
  746. If you don't like how the page break divides text, "block move"
  747. the offending bottom text from the previous page onto the next
  748. page...being careful not to alter the top and bottom line-space
  749. margins.  (You should do this before continuing your next
  750. page-break macro.)  "Block move" deletes line spaces occupied by
  751. the block before it was moved.  "Block copy" does not...but
  752. you'll have to go back and erase it without subtracting line
  753. space, in which case you place cursor on column 1 and delete each
  754. line with QEDIT's "<del_to_eol>" command.
  755.  
  756. If you do not plan to create footers, you may delete all blank
  757. lines between bottom of text and form feed line, that may form as
  758. a result of using the "page break" macro.  I recommend, however,
  759. not to do this until you have decided how space to leave for a
  760. bottom margin.
  761.  
  762.  
  763.  
  764.  
  765.  
  766.  
  767.  
  768.                             -=12=-
  769.  
  770.  
  771.  
  772. "FORMAT" MACROS FOR QEDIT (cont'd)
  773.  
  774.  
  775.  
  776.  
  777. If you do plan to create footers, do not delete any blank lines
  778. that may appear between text end and form-feed line, as a result
  779. of using a "page break" macro.
  780.  
  781. Once your top and bottom margins are created, you may insert any
  782. header/footer in the blank margin spaces provided...and there
  783. must be no windows active when using the macros to copy headers
  784. and footers (that is, file must be in "full screen" mode.  This
  785. is because the "copy" macros use [PGUP] and [PGDN], which take
  786. smaller jumps in windows, than in full screen).
  787.  
  788. (Manual "block copy" inserts an additional line space for each
  789. blocked line, underneath the copied text...so remember to delete
  790. those extra blank lines.)
  791.  
  792.  
  793.  
  794.  
  795.  
  796.  
  797.  
  798.  
  799.  
  800.  
  801.  
  802.  
  803.  
  804.  
  805.  
  806.  
  807.  
  808.  
  809.  
  810.  
  811.  
  812.  
  813.  
  814.  
  815.  
  816.  
  817.  
  818.  
  819.  
  820.  
  821.  
  822.  
  823.  
  824.  
  825.  
  826.  
  827.  
  828.  
  829.  
  830.  
  831.  
  832.                             -=13=-
  833.  
  834.  
  835.  
  836. "FORMAT" MACROS FOR QEDIT (cont'd)
  837.  
  838.  
  839.  
  840.  
  841. ------------------------------------------------------------
  842. ALT-3:  COPY HEADER TO NEXT PAGE
  843.  
  844. <macro_record>
  845. <MACRO>
  846. <unmark_block>
  847. <beg_line>
  848. <drop_anchor>
  849. <end_line>
  850. <drop_anchor>
  851. <find>
  852. <literal>
  853. [CTRL]L
  854. [ENTER][ENTER]
  855. [DOWN ARROW]
  856. <del_to_eol>
  857. <copy_block>
  858. [DOWN ARROW]
  859. <del_line>
  860. [UP ARROW]
  861. <macro_record>
  862.  
  863. NOTES:  This "copy header" macro only works for a single-line
  864. header situated on line one of a page's top margin...and copies a
  865. header to consecutive (not previous) pages.
  866.  
  867. It will automatically replace any previously-inserted headers, to
  868. spare you the hassle of deleting or editing old headers. Remember
  869. to "unmark_block" when done, as the macro leaves the last header
  870. copied "block highlighted."  (This is so, if you decide to switch
  871. to "manual" block-copy of the new header, it is already
  872. highlighted.)
  873.  
  874. Before executing "copy header" macro, you must first have created
  875. a "page break" for every page that gets a header. Also, [INSERT]
  876. must be "on"; and cursor must be anywhere on the same line as the
  877. header to be copied.
  878.  
  879. QEDIT command "<drop_anchor>" is a "mark block" command, which
  880. does not require separate keys to "<mark_block_begin>" and
  881. "<mark_block_end>."
  882.  
  883. You must know when the header has been copied to the last page,
  884. for executing the "copy header" command beyond that can botch up
  885. a portion of text.  If you prefer not to use the "copy header"
  886. macro, you can use the "find page-break" macro, and manually
  887. "block copy" your header...remebering to delete the extra line
  888. space inserted as a result of "block copy."
  889.  
  890. Page numbering:  If you want to include page numbering in your
  891. headers, include "Page #" (or "Page # of #," or "-#", or
  892. something similar) in the first header, before copying it.  After
  893.  
  894.  
  895.  
  896.                             -=14=-
  897.  
  898.  
  899.  
  900. "FORMAT" MACROS FOR QEDIT (cont'd)
  901.  
  902.  
  903.  
  904.  
  905. copying the header the number of times desired, replace the "#"
  906. symbol of each header with the appropriate page number.  (You can
  907. expedite this process with QEDIT's "<find>" and "<repeat_find>"
  908. commands, by searching for "Page #", "#", or the like.)
  909.  
  910. To spare yourself unnecessary re-editing, it is a good habit to
  911. complete your final draft before inserting page breaks, headers,
  912. and footers.
  913.  
  914.  
  915.  
  916.  
  917.  
  918.  
  919.  
  920.  
  921.  
  922.  
  923.  
  924.  
  925.  
  926.  
  927.  
  928.  
  929.  
  930.  
  931.  
  932.  
  933.  
  934.  
  935.  
  936.  
  937.  
  938.  
  939.  
  940.  
  941.  
  942.  
  943.  
  944.  
  945.  
  946.  
  947.  
  948.  
  949.  
  950.  
  951.  
  952.  
  953.  
  954.  
  955.  
  956.  
  957.  
  958.  
  959.  
  960.                             -=15=-
  961.  
  962.  
  963.  
  964. "FORMAT" MACROS FOR QEDIT (cont'd)
  965.  
  966.  
  967.  
  968.  
  969. ------------------------------------------------------------
  970.  
  971. ALT-4:  COPY FOOTER TO NEXT PAGE
  972.  
  973. <macro_record>
  974. <MACRO>
  975. <unmark_block>
  976. <beg_line>
  977. <drop_anchor>
  978. <end_line>
  979. <drop_anchor>
  980. <find>
  981. <literal>
  982. [CTRL]L
  983. [ENTER][ENTER]
  984. <repeat_find>
  985. [UP ARROW]
  986. <del_to_eol>
  987. <copy_block>
  988. [DOWN ARROW]
  989. <del_line>
  990. [UP ARROW]
  991. <macro_record>
  992.  
  993. NOTES:  This "copy footer" macro only works for a single-line
  994. footer situated on the last line of a page's bottom margin...and
  995. copies a footer to consecutive (not previous) pages.
  996.  
  997. If you plan to create footers, do not delete any blank lines that
  998. may appear between text end and form-feed line, as a result of
  999. using a "page break" macro...or printer will type the footer in
  1000. the wrong place.
  1001.  
  1002. It will automatically replace any previously-inserted footers, to
  1003. spare you the hassle of deleting or editing old headers. Remember
  1004. to "unmark_block" when done, as the macro leaves the last header
  1005. copied "block highlighted."  (This is so, if you decide to switch
  1006. to "manual" block-copy of the new header, it is already
  1007. highlighted.)
  1008.  
  1009. Before executing "copy footer" macro, you must first have created
  1010. a "page break" for every page that gets a footer. Also, [INSERT]
  1011. must be "on"; and cursor must be anywhere on the same line as the
  1012. footer to be copied.
  1013.  
  1014. QEDIT command "<drop_anchor>" is a "mark block" command, which
  1015. does not require separate keys to "<mark_block_begin>" and
  1016. "<mark_block_end>."
  1017.  
  1018. You must know when the footer has been copied to the last page,
  1019. for executing the "copy footer" command beyond that can botch up
  1020. a portion of text that may follow.  If you prefer not to use the
  1021.  
  1022.  
  1023.  
  1024.                             -=16=-
  1025.  
  1026.  
  1027.  
  1028. "FORMAT" MACROS FOR QEDIT (cont'd)
  1029.  
  1030.  
  1031.  
  1032.  
  1033. "copy footer" macro, you can use the "find page-break" macro, and
  1034. manually "block copy" your footer...remebering to delete the
  1035. extra line space inserted as a result of "block copy."
  1036.  
  1037. Page numbering:  If you want to include page numbering in your
  1038. footers, include "Page #" (or "Page # of #," or "-#", or
  1039. something similar) in the first footer, before copying it.  After
  1040. copying the footer the number of times desired, replace the "#"
  1041. symbol of each footer with the appropriate page number.  (You can
  1042. expedite this process with QEDIT's "<find>" and "<repeat_find>"
  1043. commands, by searching for "Page #", "#", or the like.)
  1044.  
  1045. To spare yourself unnecessary re-editing, it is a good habit to
  1046. complete your final draft before inserting page breaks, headers,
  1047. and footers.
  1048.  
  1049. ------------------------------------------------------------
  1050.  
  1051. ALT-5:  FIND PAGE BREAK
  1052.  
  1053. <macro_record>
  1054. <MACRO>
  1055. <find>
  1056. <literal>
  1057. [CTRL]L
  1058. [ENTER][ENTER]
  1059. <macro_record>
  1060.  
  1061. NOTES:  This macro searches for the next consecutive page break
  1062. (symbolized on screen as the Egyptian "ankh").  You can use this
  1063. macro to quickly jump from page to page, in order to manually
  1064. "block copy" a header or  footer... remembering to delete the
  1065. extra blank line that is inserted as a result of "block copy".
  1066. You can also use the "find page-break" macro to manually delete
  1067. top and bottom margins.
  1068.  
  1069.  
  1070.  
  1071.  
  1072.  
  1073.  
  1074.  
  1075.  
  1076.  
  1077.  
  1078.  
  1079.  
  1080.  
  1081.  
  1082.  
  1083.  
  1084.  
  1085.  
  1086.  
  1087.  
  1088.                             -=17=-
  1089.  
  1090.  
  1091.  
  1092. "FORMAT" MACROS FOR QEDIT (cont'd)
  1093.  
  1094.  
  1095.  
  1096.  
  1097. ------------------------------------------------------------
  1098.  
  1099. ALT-6:  REMOVE 6-LINE BOTTOM & TOP MARGINS
  1100.  
  1101. <macro_record>
  1102. <MACRO>
  1103. <find>
  1104. <literal>
  1105. [CTRL]L
  1106. [ENTER][ENTER]
  1107. {hit [UP ARROW] 5 times}
  1108. {hit <del_line> 12 times}
  1109. <macro_record>
  1110.  
  1111. NOTES:  This macro automatically removes bottom & top margins, if
  1112. said margins are indeed 6 lines deep.  The macro does it by first
  1113. searching for the next "page break," therefore it won't delete
  1114. the top margin on page 1. Each time you call up the macro, it
  1115. deletes the next occurrance of a bottom and top margin, in that
  1116. order...so each time you call up this macro, you must have a
  1117. 6-line top margin immediately below the page break of a 6-line
  1118. bottom margin, as the next "bottom/top" margin to be deleted.
  1119.  
  1120. Any headers and footers are deleted, as they are part of a
  1121. margin.
  1122.  
  1123. You must be sure you have not altered any margin (to be deleted)
  1124. to be less than 6 lines, and that the margins you want to delete
  1125. are not configured for less than 6 lines, or you may wind up
  1126. deleting some text. For the same reason you must know the last
  1127. page containing 6-line top and bottom margins.  If in doubt, you
  1128. can always use the "find page-break" macro, and delete the
  1129. margins manually.
  1130.  
  1131. This macro is an expedient way to delete 6-line top and bottom
  1132. margins, in the event you need to re-format a document's pages.
  1133.  
  1134.  
  1135.  
  1136.  
  1137.  
  1138.  
  1139.  
  1140.  
  1141.  
  1142.  
  1143.  
  1144.  
  1145.  
  1146.  
  1147.  
  1148.  
  1149.  
  1150.  
  1151.  
  1152.                             -=18=-
  1153.  
  1154.  
  1155.  
  1156. "FORMAT" MACROS FOR QEDIT (cont'd)
  1157.  
  1158.  
  1159.  
  1160.  
  1161. ------------------------------------------------------------
  1162.  
  1163. ALT-7:  REMOVE 3-LINE BOTTOM & TOP MARGINS
  1164.  
  1165. <macro_record>
  1166. <MACRO>
  1167. <find>
  1168. <literal>
  1169. [CTRL]L
  1170. [ENTER][ENTER]
  1171. {hit [UP ARROW] 2 times}
  1172. {hit <del_line> 6 times}
  1173. <macro_record>
  1174.  
  1175. NOTES:  This macro automatically removes top and bottom margins,
  1176. if said margins are indeed 3 lines deep.  The macro does it by
  1177. first searching for the next "page break," therefore it won't
  1178. delete the top margin on page 1. Each time you call up the macro,
  1179. it deletes the next occurrance of a bottom and top margin, in
  1180. that order...so each time you call up this macro, you must have a
  1181. 3-line top margin immediately below the page break of a 3-line
  1182. bottom margin, as the next "bottom/top" margin to be deleted.
  1183.  
  1184. Any headers and footers are deleted, as they are part of a
  1185. margin.
  1186.  
  1187. You must be sure you have not altered any margin (to be deleted)
  1188. to be less than 3 lines, and that the margins you want to delete
  1189. are not configured for less than 3 lines, or you may wind up
  1190. deleting some text. For the same reason you must know the last
  1191. page containing 3-line top and bottom margins.  If in doubt, you
  1192. can always use the "find page-break" macro, and delete the
  1193. margins manually.
  1194.  
  1195. This macro is an expedient way to delete 3-line top and bottom
  1196. margins, in the event you need to re-format a document's pages.
  1197.  
  1198.  
  1199.  
  1200.  
  1201.  
  1202.  
  1203.  
  1204.  
  1205.  
  1206.  
  1207.  
  1208.  
  1209.  
  1210.  
  1211.  
  1212.  
  1213.  
  1214.  
  1215.  
  1216.                             -=19=-
  1217.  
  1218.  
  1219.  
  1220. "FORMAT" MACROS FOR QEDIT (cont'd)
  1221.  
  1222.  
  1223.  
  1224.  
  1225. ------------------------------------------------------------
  1226.  
  1227. ALT-8:  SET LEFT/RIGHT MARG. AT 1" (10 CPI OR PROPORTIONAL)
  1228.  
  1229. <macro_record>
  1230. <MACRO>
  1231. [ESC]OR
  1232. 65
  1233. [ENTER]
  1234. [ESC]PL
  1235. 10
  1236. [ENTER]
  1237. <macro_record>
  1238.  
  1239. NOTES:  This macro sets the manuscript-standard 1-inch left and
  1240. right margin for 10 cpi (pica) or proportional pitch. This
  1241. assumes a standard 10 cpi page-width of 85 (8-1/2 inches), hence
  1242. the macro also sets right margin to 65.  If your text's right
  1243. margin is other than 65, you must re-format each paragraph with
  1244. QEDIT's "<wrap_para>" command.
  1245.  
  1246. The "65" in this macro is the right margin for 10 cpi (pica).
  1247. PROPORTIONAL SPACING requires an adjustment of the right margin
  1248. from "65" to "72."  That's because proportional characters take
  1249. up less space than 10 cpi.  For proportional, add 1 extra
  1250. character for every 10 characters in pica.  Here's the formula:
  1251.  
  1252.      P = p / 10 + p
  1253.  
  1254. (Where "P" = number of proportional characters, and "p" = number
  1255. of pica characters.  "Number of characters" always refers to the
  1256. same line.)
  1257.  
  1258. (Translation:  Proportional characters = pica characters divided
  1259. by 10, plus pica characters.)  In this case, the calculation is
  1260. is:  P = 65 / 10 + 65.  "P" then equals "71.5," which I rounded
  1261. off to 72.
  1262.  
  1263. Text to be affected must be "flush left" on screen, as well as
  1264. paragraph-wrapped to the macro's right-margin setting. Since the
  1265. QEDIT command "[ESC]PL" (the pop-up menu version of
  1266. "<set_print_left_margin>") is a print-code command to "set left
  1267. margin," the left margin will not change on screen. This is how
  1268. the early word processors worked:  definitely not a "WYSIWYG"
  1269. ("what you see is what you get") situation.
  1270.  
  1271. Since QEDIT does not have a single-stroke "paragraph reformat"
  1272. command, you are saved the bother of first re-"<align>"ing all
  1273. lines in each paragraph, then doing a "<wrap_para>" for those
  1274. same paragraphs...which is how to print out WYSIWYG fashion.  No
  1275. matter what you want your left margin to be when printing out, by
  1276. using "[ESC]PL," you never have to bother manually realigning
  1277.  
  1278.  
  1279.  
  1280.                             -=20=-
  1281.  
  1282.  
  1283.  
  1284. "FORMAT" MACROS FOR QEDIT (cont'd)
  1285.  
  1286.  
  1287.  
  1288.  
  1289. your paragraphs' left margins...instead, all you need do is allow
  1290. for an adjustment of the on-screen right margin according to how
  1291. you set the printer's left margin.
  1292.  
  1293. If your text is not already formatted to the macro's right-margin
  1294. setting, you must "<wrap_para>" it after executing this macro.
  1295.  
  1296. Make sure your printer is set for 10 cpi or proportional, for the
  1297. affected portion of text.   (If you use a printer macro, as
  1298. described in my file QPRINTER.ART, you can imbed the 10 cpi
  1299. command in text, by using the 12 cpi macro without any text
  1300. between the "begin" and "end" codes...or by deleting the first
  1301. half of the "12 cpi" print code.  The "end" code really means
  1302. "return to 10 cpi").  Your printer may or may not have a PS
  1303. ("proportional spacing") button...but you can always use the
  1304. print-code macro for this.
  1305.  
  1306. Here's the formula for establishing a 10 cpi left margin:
  1307.  
  1308.      L = 10 x i
  1309.  
  1310. (Translation:  Left margin = 10 times number of inches in
  1311. decimal.)
  1312.  
  1313. Here's the formula for centering text on printer, when left
  1314. margin is "flush left" on screen (assuming you are printing at 10
  1315. cpi, and want right margin to equal left margin):
  1316.  
  1317.      R = 85 - L - L
  1318.  
  1319. (Translation:  right margin = 85 minus the left margin, minus the
  1320. left margin.)
  1321.  
  1322. Once you have the left and right margins set for 10 cpi, you can
  1323. convert the line width to proportional, by using the formula
  1324. described above ("P = p / 10 + p").
  1325.  
  1326. Using the simple formulas above, you can quickly reset printer
  1327. margins to any width desired.  (Example:  If you want a (10-cpi)
  1328. left/right margin of 1-1/2 inches, change printer left margin
  1329. ("[ESC]PL") to 15 (10 times 1.5), then use the formula "R = 85 -
  1330. L - L" to find out the right margin, which will be 55 (85 - 15 -
  1331. 15)...then change right margin  ("[ESC]OR") to 55.  (Using the
  1332. proportional formula, setting for right margin equals 61.)  To
  1333. include the new setting in a macro, use the macro instructions
  1334. above, where "65" is to be replaced by the new right margin, and
  1335. "10" is to be replaced by the new left margin.
  1336.  
  1337.  
  1338.  
  1339.  
  1340.  
  1341.  
  1342.  
  1343.  
  1344.                             -=21=-
  1345.  
  1346.  
  1347.  
  1348. "FORMAT" MACROS FOR QEDIT (cont'd)
  1349.  
  1350.  
  1351.  
  1352.  
  1353. ------------------------------------------------------------
  1354.  
  1355. ALT-9:  SET LEFT/RIGHT MARGINS AT 1 INCH (FOR 12 CPI)
  1356.  
  1357. <macro_record>
  1358. <MACRO>
  1359. [ESC]OR
  1360. 78
  1361. [ENTER]
  1362. [ESC]PL
  1363. 12
  1364. [ENTER]
  1365. <macro_record>
  1366.  
  1367. This macro sets the manuscript-standard 1-inch left and right
  1368. margin for 12 cpi (elite).  This assumes a standard page-width of
  1369. 8-1/2 inches, hence the macro also sets right margin to 78.  If
  1370. your text's right margin is other than 78, you must re-format
  1371. each paragraph with QEDIT's "<wrap_para>" command.
  1372.  
  1373. Text to be affected must be "flush left" on screen, as well as
  1374. re-formatted to a 78-character-width right margin.  Since the
  1375. QEDIT command "[ESC]PL" (the pop-up menu version of
  1376. "<set_print_left_margin>") is a print-code command to "set left
  1377. margin," the left margin will not change on screen. This is how
  1378. the early word processors worked:  definitely not a "WYSIWYG"
  1379. ("what you see is what you get") situation.
  1380.  
  1381. Since QEDIT does not have a single-stroke "paragraph reformat"
  1382. command, you are saved the bother of first re-"<align>"ing all
  1383. lines in each paragraph, then doing a "<wrap_para>" for those
  1384. same paragraphs...which is how to print out WYSIWYG fashion.  No
  1385. matter what you want your left margin to be when printing out, by
  1386. using "[ESC]PL," you never have to bother manually realigning
  1387. your paragraphs' left margins...instead, all you need do is allow
  1388. for an adjustment of the on-screen right margin according to how
  1389. you set the printer's left margin.
  1390.  
  1391. If your text is not already formatted with a 78-column right
  1392. margin, you must "<wrap_para>" it after setting the right margin
  1393. to 78 (using QEDIT's "<set_rmargin>" command).
  1394.  
  1395. Make sure your printer is set for 12 cpi (pica), for the portion
  1396. of text set by this macro.  (If you use a printer macro, as
  1397. described in my file QPRINTER.ART, you can imbed the 12 cpi
  1398. command in text, by using the 12 cpi macro.)
  1399.  
  1400. Here's the formula for establishing a 12 cpi left margin:
  1401.  
  1402.      L = 12 x i
  1403.  
  1404.  
  1405.  
  1406.  
  1407.  
  1408.                             -=22=-
  1409.  
  1410.  
  1411.  
  1412. "FORMAT" MACROS FOR QEDIT (cont'd)
  1413.  
  1414.  
  1415.  
  1416.  
  1417. (Translation:  Left margin = 12 times number of inches in
  1418. decimal.)
  1419.  
  1420. Here's the formula for centering text on printer, when left
  1421. margin is "flush left" on screen (assuming you are printing at 12
  1422. cpi, and want right margin to equal left margin):
  1423.  
  1424.      R = 102 - L - L
  1425.  
  1426. (Translation:  right margin = 102 minus the left margin, minus
  1427. the left margin.)
  1428.  
  1429. Using the simple formulas above, you can quickly reset printer
  1430. margins to any width desired.  (Example:  If you want a (12-cpi)
  1431. left/right margin of 1-1/2 inches, change printer left margin
  1432. ("[ESC]PL") to 18 (12 times 1.5), then use the formula "R = 102 -
  1433. L - L" to find out the right margin, which will be 66 (102 - 18 -
  1434. 18)...then change right margin  ("[ESC]OR") to 66.  To include
  1435. the new setting in a macro, use the macro instructions above,
  1436. where "78" is to be replaced by the new right margin, and "12" is
  1437. to be replaced by the new left margin.
  1438.  
  1439. ------------------------------------------------------------
  1440.  
  1441. [ALT]0    CLEAR LEFT/RIGHT MARGINS FOR STANDARD 10 CPI
  1442.           8-1/2" WIDE PAGE (left marg. 2, right marg. 78)
  1443.  
  1444. <macro_record>
  1445. <MACRO>
  1446. [ESC]OR
  1447. 78
  1448. [ENTER]
  1449. [ESC]PL
  1450. 2
  1451. [ENTER]
  1452. <macro_record>
  1453.  
  1454. NOTES:  This macro clears printer margin and QEDIT right margin
  1455. commands you may have previously set..."defaulting" them to the
  1456. standard printer page of 8-1/2 inches.  Since the paper can
  1457. actually hold 85 characters per line (8-1/2 inches at 10 cpi = 85
  1458. characters per line), but the printer "carriage returns" at
  1459. character 80, this macro centers text print-out by setting
  1460. left/right margins at 2 character-widths each.
  1461.  
  1462.  
  1463.  
  1464.  
  1465.  
  1466.  
  1467.  
  1468.  
  1469.  
  1470.  
  1471.  
  1472.                             -=23=-
  1473.  
  1474.  
  1475.  
  1476. "FORMAT" MACROS FOR QEDIT (cont'd)
  1477.  
  1478.  
  1479.  
  1480.  
  1481. ------------------------------------------------------------
  1482.  
  1483. ALT-Q:  CHECK PAGE LENGTH FOR 52-LINE TEXT BODY (6-LINE
  1484.         TOP/BOTTOM MARGINS)
  1485.  
  1486. <macro_record>
  1487. <MACRO>
  1488. <beg_line>
  1489. {hit [DOWN ARROW] 51 times}
  1490. <macro_record>
  1491.  
  1492. This "52-line page length check" macro moves the cursor down 51
  1493. lines.  This helps you check for correct page length, when top
  1494. and bottom margins are formatted for 6 lines each.
  1495.  
  1496. Before executing this macro, cursor must be anywhere on first
  1497. text line (not line 1, if there is also a top margin) of page to
  1498. be checked.
  1499.  
  1500.  
  1501.  
  1502. ------------------------------------------------------------
  1503.  
  1504. ALT-W:  CHECK PAGE LENGTH FOR 58-LINE TEXT BODY (3-LINE
  1505.         TOP/BOTTOM MARGINS)
  1506.  
  1507. <macro_record>
  1508. <MACRO>
  1509. <beg_line>
  1510. {hit [DOWN ARROW] 57 times}
  1511. <macro_record>
  1512.  
  1513. This "58-line page length check" macro moves the cursor down 57
  1514. lines.  This helps you check for correct page length, when top
  1515. and bottom margins are formatted for 3 lines each.
  1516.  
  1517. Before executing this macro, cursor must be anywhere on first
  1518. text line (not line 1, if there is also a top margin) of page to
  1519. be checked.
  1520.  
  1521.  
  1522.  
  1523.  
  1524.  
  1525.  
  1526.  
  1527.  
  1528.  
  1529.  
  1530.  
  1531.  
  1532.  
  1533.  
  1534.  
  1535.  
  1536.                             -=24=-
  1537.  
  1538.  
  1539.  
  1540. "FORMAT" MACROS FOR QEDIT (cont'd)
  1541.  
  1542.  
  1543.  
  1544.  
  1545. ------------------------------------------------------------
  1546.  
  1547. ALT-E:  CHECK FULL PAGE LENGTH (64 LINES)
  1548.  
  1549. <macro_record>
  1550. <MACRO>
  1551. <beg_line>
  1552. {hit [DOWN ARROW] 63 times}
  1553. <macro_record>
  1554.  
  1555. This "64-line full page length check" macro moves the cursor down
  1556. 64 lines...landing on the "page break," which is that page's last
  1557. line.  This helps you check for correct full page length, which
  1558. includes top & bottom margins, if any (regardless of the line
  1559. spaces they occupy).  This is equivalent to the 66-line 11-inch
  1560. printer paper length...though measuring 64 lines on-screen.
  1561.  
  1562. This macro only works if you have not deleted any blank line
  1563. spaces that were created by the "page break" macro.
  1564.  
  1565. Before executing this macro, cursor must be anywhere on line 1 of
  1566. page to be checked (if there is a top margin, place cursor on
  1567. line 1 of top margin).
  1568.  
  1569. This macro also expedites "manual" block-copy of headers and
  1570. footers, by jumping from the new header or footer location, to
  1571. one line above the next point of insertion.
  1572.  
  1573.  
  1574.  
  1575.  
  1576.  
  1577.  
  1578.  
  1579.  
  1580.  
  1581.  
  1582.  
  1583.  
  1584.  
  1585.  
  1586.  
  1587.  
  1588.  
  1589.  
  1590.  
  1591.  
  1592.  
  1593.  
  1594.  
  1595.  
  1596.  
  1597.  
  1598.  
  1599.  
  1600.                             -=25=-
  1601.  
  1602.  
  1603.  
  1604. "FORMAT" MACROS FOR QEDIT (cont'd)
  1605.  
  1606.  
  1607.  
  1608.  
  1609. ------------------------------------------------------------
  1610.  
  1611. ALT-R:  PRINTER CARRIAGE RETURN
  1612. -------------------------------
  1613.  
  1614. <macro_record>
  1615. <MACRO>
  1616. <unmark_block>
  1617. <literal>
  1618. [CTRL]M
  1619. <literal>
  1620. [CTRL]J
  1621. [LEFT ARROW][LEFT ARROW]
  1622. <drop_anchor>
  1623. [RIGHT ARROW]
  1624. <drop_anchor>
  1625. <print_block>
  1626. <unmark_block>
  1627. [LEFT ARROW]
  1628. [DELETE][DELETE]
  1629. <macro_record>
  1630.  
  1631. The "printer carriage return" macro does not affect text...but
  1632. sends a carriage return/linefeed to the printer, making the paper
  1633. move up 4 lines (2/3 inch).  (It should move up only 1 line,
  1634. since there is only 1 carriage return/linefeed in the macro...but
  1635. this is how my printer responds.)
  1636.  
  1637. Before executing this macro, cursor must be on a blank line, or
  1638. QEDIT will print out any characters on that line.
  1639.  
  1640.  
  1641.  
  1642.  
  1643.  
  1644.  
  1645.  
  1646.  
  1647.  
  1648.  
  1649.  
  1650.  
  1651.  
  1652.  
  1653.  
  1654.  
  1655.  
  1656.  
  1657.  
  1658.  
  1659.  
  1660.  
  1661.  
  1662.  
  1663.  
  1664.                             -=26=-
  1665.  
  1666.  
  1667.  
  1668. "FORMAT" MACROS FOR QEDIT (cont'd)
  1669.  
  1670.  
  1671.  
  1672. ALT-T:  PRINTER PAGE EJECT
  1673. --------------------------
  1674.  
  1675. <macro_record>
  1676. <MACRO>
  1677. <unmark_block>
  1678. <literal>
  1679. [CTRL]L
  1680. [LEFT ARROW]
  1681. <drop_anchor><drop_anchor>
  1682. <print_block>
  1683. <unmark_block>
  1684. [DELETE]
  1685. <macro_record>
  1686.  
  1687. The "printer page eject" macro does not affect text...but sends a
  1688. form feed to the printer, ejecting the current printer page to
  1689. the beginning of the next.
  1690.  
  1691. Before executing this macro, cursor must be on a blank line, or
  1692. QEDIT will print out any characters on that line.
  1693.  
  1694. ------------------------------------------------------------
  1695.  
  1696. ALT-Y:  INPUT FORM FEED
  1697. -----------------------
  1698.  
  1699. <macro_record>
  1700. <MACRO>
  1701. <literal>
  1702. [CTRL]L
  1703. <macro_record>
  1704.  
  1705. NOTES:  "Input form feed" macro gives you a plain vanilla "page
  1706. break" without any of the fancy top/bottom margin formatting
  1707. provided by the "page break" macros.
  1708.  
  1709.  
  1710.  
  1711.  
  1712.  
  1713.  
  1714.  
  1715.  
  1716.  
  1717.  
  1718.  
  1719.  
  1720.  
  1721.  
  1722.  
  1723.  
  1724.  
  1725.  
  1726.  
  1727.  
  1728.                             -=27=-
  1729.  
  1730.  
  1731.  
  1732. "FORMAT" MACROS FOR QEDIT (cont'd)
  1733.  
  1734.  
  1735.  
  1736.  
  1737. ------------------------------------------------------------
  1738.  
  1739. ALT-D:  CONVERT TO DOUBLE SPACE (from single)
  1740. ---------------------------------------------
  1741.  
  1742. <macro_record>
  1743. <MACRO>
  1744. <beg_line>
  1745. <cursor_down>
  1746. [ENTER]
  1747. <macro_record>
  1748.  
  1749. In order to create this macro, "[INSERT]" must be "on", due to
  1750. the [ENTER] key included in the macro.
  1751.  
  1752. The "convert to double space" macro will change single-space text
  1753. to double-space.  Just hold down the macro (in my example: ALT-D)
  1754. for the duration of time it takes to double-space desired text.
  1755. Cursor must start on a line with text, and [insert] must be "on".
  1756.  
  1757. If you don't want to double the number of lines between
  1758. paragraphs, use the "double space" macro only on actual portions
  1759. of text.
  1760.  
  1761. I prefer to store the "double space" macro in a macro file,
  1762. rather than in the configuration file.  You may prefer otherwise,
  1763. and you may also prefer to assign this macro to a single key
  1764. (that is, one of the function keys).
  1765.  
  1766. If you want to store the "double-space" macro in the
  1767. configuration file, here is the command line:
  1768.  
  1769. @d        macro_begin beg_line cursor_down return
  1770.  
  1771. (Of course, if you prefer to use a different macro assignment,
  1772. change "@d" to the assignment of your choice.)
  1773.  
  1774.  
  1775.  
  1776.  
  1777.  
  1778.  
  1779.  
  1780.  
  1781.  
  1782.  
  1783.  
  1784.  
  1785.  
  1786.  
  1787.  
  1788.  
  1789.  
  1790.  
  1791.  
  1792.                             -=28=-
  1793.  
  1794.  
  1795.  
  1796. "FORMAT" MACROS FOR QEDIT (cont'd)
  1797.  
  1798.  
  1799.  
  1800. ------------------------------------------------------------
  1801.  
  1802. ALT-S:  CONVERT TO SINGLE SPACE (from double)
  1803. ---------------------------------------------
  1804.  
  1805. <macro_record>
  1806. <MACRO>
  1807. <beg_line>
  1808. <cursor_down>
  1809. <del_line>
  1810. <macro_record>
  1811.  
  1812. The "convert to single space" macro will change double-space text
  1813. back to single space.  Just hold down macro (in my example:
  1814. ALT-S) for the duration of time it takes to single-space desired
  1815. text.  Cursor must start on a line with text, and all text to be
  1816. affected must be double-spaced.
  1817.  
  1818. WARNING:  This macro is intended to delete blank lines only.
  1819. Should you use this macro on single-space text, or begin the
  1820. macro on a blank line of double-space text, you will delete text.
  1821.  
  1822. I prefer to store the "single space" macro in a macro file,
  1823. rather than in the configuration file.  You may prefer otherwise,
  1824. and you may also prefer to assign this macro to a single key
  1825. (that is, one of the function keys).
  1826.  
  1827. If you want to store the "single-space" macro in the
  1828. configuration file, here is the command line:
  1829.  
  1830. @s        macro_begin beg_line cursor_down del_line
  1831.  
  1832. (Of course, if you prefer to use a different macro assignment,
  1833. change "@s" to the assignment of your choice.)
  1834.  
  1835.  
  1836.  
  1837.  
  1838.  
  1839.  
  1840.  
  1841.  
  1842.  
  1843.  
  1844.  
  1845.  
  1846.  
  1847.  
  1848.  
  1849.  
  1850.  
  1851.  
  1852.  
  1853.  
  1854.  
  1855.  
  1856.                             -=29=-
  1857.  
  1858.  
  1859.  
  1860. "FORMAT" MACROS FOR QEDIT (cont'd)
  1861.  
  1862.  
  1863.  
  1864.  
  1865. *****************************************************************
  1866.  
  1867. PART V:  SAVING YOUR MACROS
  1868. ---------------------------
  1869.  
  1870. Now that you've gone through all this, you certainly don't want
  1871. to lose these macros so painstakingly created.  At this moment,
  1872. should your computer's power source cease (through a power
  1873. failure, inadvertantly pressing the reset or "off" button,
  1874. tripping over the power cord, RAM lockup, or whatever), you will
  1875. indeed lose them.
  1876.  
  1877. To save your printer macros to disk, use QEDIT's "macro_write"
  1878. command...whatever you have configured it to be (I use
  1879. "[CTRL]MS").  You can name the macro file anything you want, but
  1880. it's advisable to save all macro files with the extension ".MAC"
  1881. or ".KEY" for easy identification.  May I suggest naming your
  1882. format macro file FORMAT.MAC?
  1883.  
  1884.  
  1885.  
  1886.  
  1887.  
  1888.  
  1889.  
  1890.  
  1891.  
  1892.  
  1893.  
  1894.  
  1895.  
  1896.  
  1897.  
  1898.  
  1899.  
  1900.  
  1901.  
  1902.  
  1903.  
  1904.  
  1905.  
  1906.  
  1907.  
  1908. *****************************************************************
  1909. END OF FILE "QFORMAT.ART" ***************************************
  1910. *****************************************************************
  1911.  
  1912.  
  1913.  
  1914.  
  1915.  
  1916.  
  1917.  
  1918.  
  1919.  
  1920.                             -=30=-
  1921.  
  1922.  
  1923.  
  1924.  
  1925.  
  1926.  
  1927.  
  1928.  
  1929.  
  1930.  
  1931.  
  1932.  
  1933.  
  1934.  
  1935.  
  1936.  
  1937.  
  1938.  
  1939.  
  1940.  
  1941.  
  1942.  
  1943.  
  1944.  
  1945.  
  1946.  
  1947.  
  1948.  
  1949.  
  1950.  
  1951.  
  1952.  
  1953.  
  1954.  
  1955.  
  1956.  
  1957.  
  1958.  
  1959.  
  1960.  
  1961.  
  1962.  
  1963.  
  1964.  
  1965.  
  1966.  
  1967.  
  1968.  
  1969.  
  1970.  
  1971.  
  1972.  
  1973.  
  1974.  
  1975.  
  1976.  
  1977.